package com.myapp.struts.menu;

import java.util.ArrayList;

public class USAllDayHTML {

    private static USAllDayHTML usAllDayHTMLObj;
    ArrayList<FoodItems> usAllDayHTMLArray = new ArrayList<FoodItems>();

    public static synchronized USAllDayHTML getSingletonObject() {
        if (usAllDayHTMLObj == null) {
            usAllDayHTMLObj = new USAllDayHTML();
        }
        return usAllDayHTMLObj;
    }

    public Object clone() throws CloneNotSupportedException {
        throw new CloneNotSupportedException();
    }

    public String getUSAllDayHTML(String fileLoc) {
        String fileName = "";
        MenuRead menuReadObj = new MenuRead();
        usAllDayHTMLArray = menuReadObj.ReadMenu(Constants.US);
        
        MenuGenerate menuGenerateObj = new MenuGenerate();
        usAllDayHTMLArray = menuGenerateObj.GenerateMenu(usAllDayHTMLArray, Constants.ALL_DAY);

        MenuFormat menuFormatObj = new MenuFormat();
        fileName = menuFormatObj.FormatMenu(usAllDayHTMLArray, Constants.HTML, fileLoc);;
        return fileName;
    }
}
